const path=require("path")
module.exports={
    entry:{bundle:"./src/main.js"},
    output:{
        filename:'[name].js',
        path:path.resolve(__dirname,"./dist")
    },
    devServer: {
        clientLogLevel: 'warning',
    hot: true,
    contentBase: path.join(__dirname,  'src'),
    compress: true,
    host:"127.0.0.1",
    port: 8090,
    open: false,
    overlay: true
      ? { warnings: false, errors: true }
      : false,
    quiet: true, // necessary for FriendlyErrorsPlugin
    watchOptions: {
      poll: true,
    }
}
    
}